package tech.aistar.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tech.aistar.pojo.entity.Musiclin;

import java.util.List;

@Repository
@Mapper
public interface MusiclinMapper {
    @Insert("insert into musiclin ( song_title, singer_name, content, imgg, audio_src) VALUES (#{song_title},#{singer_name},#{content},#{imgg},#{audio_src})")
    int insert(Musiclin musiclin,Integer id);
    @Select("select song_title from musiclin where id=#{id}")
    String sele(Integer id);
    @Delete("delete from musiclin where id>0")
    void dele();
    @Select("select *from musiclin ")
    List<Musiclin> selectall();
}
